export const pagination = {
    data () {
      return {
        pData: {
          currentPage: 1,
          pageSizes: [10, 20, 50, 100],
          pageSize: 10,
          total: 0,
        }
      }
    },
    methods: {
      handleSizeChange(pageSize) {
        this.pData.currentPage = 1;
        this.pData.pageSize = pageSize;
        this.getData();
      },
      handleCurrentChange(currentPage) {
        this.pData.currentPage = currentPage;
        this.getData();
      }
    }
  }